<template>
  <div>
    <h1>hello-word</h1>
    <el-button @click="doCheckClick">点击请求接口</el-button>
    <div>
      {{ this.content}}
    </div>
  </div>
</template>

<script>
import { testHelloWord } from "@/api/familyTree/helloword";
export default {
  name: "helloWord",
  data(){
    return{
      content:"",
      params:{},
    }
  },
  methods:{
    doCheckClick(){
      this.params.name = "lja";
      testHelloWord(this.params.name).then(res => {
        console.log(res);
        this.content = res.data.data;
      });
    }
  }
}
</script>

<style scoped>

</style>
